package tasks

import "github.com/robfig/cron"

var cron_instance *cron.Cron

func init() {
	cron_instance = cron.New()
	cron_instance.Start()
}

func AddFunc(spec string, fc func()) (id cron.EntryID, err error) {
	return cron_instance.AddFunc(spec, fc)
}
